Book Contents

HorizontalMargin

Specifies the number of pixels for the horizontal touch margin. The horizontal margin is a touch-insensitive margin inside the object’s left and right edges. If the operator presses the touch-insensitive margin, the button press is not registered.

This property is useful for buttons that are positioned close together. A touch-insensitive border on each button helps ensure that an adjacent button is not pressed by mistake.

If the Shape property is Circle or Ellipse, the touch margin applies to the button’s bounding box.

See also

Bounding box